export default {
  onPageLoad(query) {
    // console.log('---------> LifeCycle onPageLoad', query)
    $page.state.currentCardType = query;
    // 通过query获取的bg对象是JSON字符串，需要转成对象才能在style绑定中正确读取
    $page.state.currentCardType.bg = JSON.parse($page.state.currentCardType.bg);
    $page.state.currentCardType.cardNo = '64567890468678269008';

    $page.handler.initData();
  },
  onPageShow() {
    //console.log('---------> LifeCycle onPageShow')
  },
  onPageReady() {
    //console.log('---------> LifeCycle onPageReady')
  },
  onPageHide() {
    //console.log('---------> LifeCycle onPageHide')
  },
  onPageUnload() {
    //console.log('---------> LifeCycle onPageUnload')
  },
}